new Vue({
    el: '#app',
    data() {
      return {
        form: {
          serachKey: "",
          page: 1,			//页数
          limit: 10			//每页数据条数
        },
        formData: {},
        tableData: [{}],		//表格数据
        total: 1,
        dialogForm: false,
        title: '',
        NewsTitle:'',
        NewsInfo:'',
        multipleSelection: []
      }
    },
    mounted() {
      let News_SerialNumber = window.sessionStorage.getItem('News_SerialNumber')
      this.SeeDetail(News_SerialNumber)
    },
    methods: {
      SeeDetail(News_SerialNumber){
        const _this = this
        let data = {
          Primary_Key_Name: 'News_SerialNumber',
          Primary_Key: News_SerialNumber,
          Data: 'news_info',
        }
        $.ajax({
          url: DomainName + '/getInquiryIDOriginal?token=' + $.cookie("token"),
          type: 'POST',
          data,
          success: function (res) {
            console.log(res);
            _this.NewsTitle = res[0].News_Name
            _this.NewsInfo = res[0].News_Main
          },
          complete: function (XMLHttpRequest) {
            _this.loading = false
            if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
              window.parent.document.location.href = "../../../" + XMLHttpRequest.getResponseHeader("CONTENTPATH");
            }
          }
        })
      },
      back(){
        window.history.go(-1)
      }
    },
  })